/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const sysRouter = {
  path: '/system',
  component: Layout,
  redirect: 'noredirect',
  name: 'System',
  meta: {
    title: 'System',
    icon: 'lock'
  },
  children: [
    {
      path: 'role',
      component: () => import('@/views/system/role/index'),
      name: 'role',
      meta: { title: 'role', noCache: true }
    },
    {
      path: 'user',
      component: () => import('@/views/system/user/index'),
      name: 'user',
      meta: { title: 'user', noCache: true }
    },
    {
      path: 'authority',
      component: () => import('@/views/system/authority/index'),
      name: 'authority',
      meta: { title: 'authority', noCache: true }
    },
    {
      path: 'organ',
      component: () => import('@/views/system/organ/index'),
      name: 'organ',
      meta: { title: 'organ', noCache: true }
    },
    {
      path: 'organInfo',
      component: () => import('@/views/system/organInfo/index'),
      name: 'organInfo',
      meta: { title: 'organInfo', noCache: true }
    },
    {
      path: 'organConf',
      component: () => import('@/views/system/organConf/index'),
      name: 'organConf',
      meta: { title: 'organConf', noCache: true }
    },
    {
      path: 'device',
      component: () => import('@/views/device/device/index'),
      name: 'device',
      meta: { title: 'device', noCache: true }
    },
      {
      path: 'deviceType',
      component: () => import('@/views/device/deviceType/index'),
      name: 'deviceType',
      meta: { title: 'deviceType', noCache: true }
    },
     {
      path: 'software',
      component: () => import('@/views/device/software/index'),
      name: 'software',
      meta: { title: 'software', noCache: true }
    },
    {
      path: 'deviceSoftware',
      component: () => import('@/views/device/deviceSoftware/index'),
      name: 'deviceSoftware',
      meta: { title: 'deviceSoftware', noCache: true }
    },
    {
      path: 'deviceUpdateLog',
      component: () => import('@/views/device/deviceUpdateLog/index'),
      name: 'deviceUpdateLog',
      meta: { title: 'deviceUpdateLog', noCache: true }
    },
    {
      path: 'merchant',
      component: () => import('@/views/merchant/merchant/index'),
      name: 'merchant',
      meta: { title: 'merchant', noCache: true }
    }

  ]
}

export default sysRouter
